package me.xiaoyan.java.chapter15;

public class StringBufferExample {

	public static void main(String[] args) {
		System.out.println("你好!" + "小白。");
		//创建sb对象
		StringBuffer sb = new StringBuffer();
		sb.append("你好!");
		sb.append("小白。");
		
		System.out.println(sb.toString());
		//创建sb1对象，并给初始参数
		StringBuffer sb1 = new StringBuffer("你好!");
		sb1.append("小白。");
		System.out.println(sb1.toString());
		
	}

}
